package com.example.questionnaire.mbg.mapper;

import com.example.questionnaire.mbg.entity.User;
import org.apache.ibatis.annotations.Param;


public interface UserMapper {
    User get(@Param("uid") int uid);

    User getByUsername(@Param("username") String username);

    void register(@Param("username") String username, @Param("password") String password);

    void login(@Param("username") String username);

    void logout(@Param("username") String username);

    void changePassword(@Param("username") String username, @Param("newPassword") String newPassword);
}